package com.zhiyou.service.impl;

import com.zhiyou.bean.Product;
import com.zhiyou.dao.ProductMapper;
import com.zhiyou.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author FightzzZ
 * @date 2022/9/21
 */
@Service
public class IndexServiceImpl implements IndexService {

    @Resource
    ProductMapper productMapper;

    @Override
    public List<Product> getSwiperProducts() {

        return productMapper.getMaxMoneyProducts();
    }

    @Override
    public List<Product> getGreatProducts() {

        return productMapper.getGreatProducts();
    }

    @Override
    public List<Product> getEduProducts() {

        return productMapper.getEduProducts();
    }

    @Override
    public List<Product> getPrepareProducts() {

        return productMapper.getPrepareProducts();
    }

    @Override
    public List<Product> getCompleteProducts() {

        return productMapper.getCompleteProducts();
    }


}
